package com.linkage.jz.bankruptcy.bean;

import java.util.List;

public class ZQPreviewCategory {

    private String categoryLabel;
    private List<ZQPreviewDetail> detailList;

    public ZQPreviewCategory(String categoryLabel, List<ZQPreviewDetail> detailList) {
        this.categoryLabel = categoryLabel;
        this.detailList = detailList;

    }

    public ZQPreviewCategory(List<ZQPreviewDetail> detailList) {
        this(null, detailList);
    }

    public boolean isIgnore() {
        return categoryLabel == null;
    }

    public List<ZQPreviewDetail> getDetailList() {
        return detailList;
    }

    public ZQPreviewDetail switchToLabelDetail() {
        return new ZQPreviewDetail(categoryLabel);
    }


}
